<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1 class="h1"></h1>
	</body>
		<script type="text/javascript" src="http://static.jinkell.com/rescource/js/jquery-3.3.1.js"></script>
		<script>
//			var arrs={"a1":"上海","b1":"北京","c1":"浙江"};
//			var arr2=["c1","a1","b1"];
//			var arr3=[];
//			for(var j=0;j<arr2.length;j++){
//				for(var keys in arrs){
//					if(arr2[j] == keys){
//						arr3.push(arrs[keys]);
//					}
//				}
//			}
//			console.log(arr3);
			
//			
			$.ajax({
				type:"get",
				url:"http://wweather.cn/bootspr/weatherdata/forecast",
				dataType:"json",
//				data:{
//					openId:"oWZzjjg4eoW6LEPkTv8ebq4F3DG8",
//					role:2
//				},
				success:function(data){
					console.log(data.WeatherData[0].daily_forecast)
					console.log(data.WeatherData[0].hourly_forecast)
				}
			});
			
//			$.getJSON('https://www.fhxy.net/dc/weather/forecast/l1/v5/商河?callback=?', function(data){
//			  //处理data数据
//			  console.log(data)
//			});

			//此时也可以在函数外定义foo方法
//			function foo(data){
//			  //处理data数据
//			  console.log(data)
//			}
//			$.getScript('https://www.fhxy.net/dc/weather/forecast/l1/v5/商河?callback=foo');

		</script>
	
</html>
